package com.study.quiz.enums;

import lombok.Getter;

/**
 * @author CJunGod
 * @create 2020-03-09 18:59
 **/
@Getter
public enum ResultMsgEnum {

    ERROR_USER_ISNULL(2002, "用户未登录，操作无权限"),

    SUCCESS_MESSAGE(200, "操作成功"),

    ERROR_COMMENT_PARAM_ISNULL(2001, "未选中任何问题或评论进行回复"),

    SYSTEM_ERROR(2004, "服务异常错误"),

    ERROR_COMMENT_TYPE_FOUND(2005, "评论类型错误或者不存在"),

    ERROR_COMMENT_MESSAGE(2006, "评论失败，该问题或评论以被删除"),
    ;

    private Integer code;

    private String message;

    ResultMsgEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
